export interface User {
  id: string;
  username: string;
  password: string;
  name: string;
  gender: 'male' | 'female' | 'other';
  avatar?: string;
  phone: string;
  email: string;
  createdAt: string;
  roles?: string[];
  permissions?: string[];
}

export interface LoginForm {
  account: string; // 手机号或账号
  password: string;
  remember?: boolean;
}

export interface RegisterForm {
  username: string;
  password: string;
  confirmPassword: string;
  name: string;
  gender: 'male' | 'female' | 'other';
  avatar?: string;
  phone: string;
  email: string;
}

export interface ResetPasswordForm {
  account: string;
  phone: string;
  newPassword: string;
  confirmPassword: string;
}